from django.conf.urls.defaults import patterns, url
from eurobet.app.views import *
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings
from django.contrib.auth import login, logout

urlpatterns = patterns('',
    url(r'^$', index),
    url(r'^signin/$', sign_in),
    url(r'^signout/$', sign_out),
    url(r'^score/$', score),
    url(r'^table/$', table),
    url(r'^points/$', points),
    url(r'^rank/$', rank),
    url(r'^all-passed-games/$', all_passed_games),
    url(r'^all-following-games/$', all_following_games),
    url(r'^register/$', register),
    url(r'^xhr_gpred/$', xhr_add_game_prediction),
    )

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += staticfiles_urlpatterns()